get_devbox() {
    # curl -fsSL https://get.jetpack.io/devbox | bash
    # arch="$(uname -m)"
    arch="amd64"
    devbox_version=$(curl -s https://api.github.com/repos/jetify-com/devbox/tags | jq -r '.[0].name')
    file_name="devbox_${devbox_version}_linux_${arch}.tar.gz"
    cli="devbox"
    bin_path="/usr/local/bin"
    sudo rm -rf ${bin_path}/${cli}
    wget https://ghproxy.net/https://github.com/jetify-com/devbox/releases/download/${devbox_version}/${file_name}
    tar -zxvf ${file_name}
    # mv ${file_name} ${cli}
    # chmod +x ${cli}
    sudo mv ${cli} ${bin_path}
    rm -rf ${file_name}
}

get_devbox

# https://521github.com/extdomains/github.com/jetify-com/devbox/releases/download/0.10.6-dev/devbox_0.10.6-dev_linux_amd64.tar.gz
